<?php
/**
 * 本控制器內容只限 vip 專屬
 */
class VipController extends LZ_Controller {

	public function Action_Index(){
		$this->displayMessage();
	}
	
	public function Action_ShowInfo(){
		$this->displayMessage();
	}

	public function Action_GreatGmae(){
		$this->displayMessage();
	}

	private function displayMessage(){
		AppProject::displayGohome();
		$controller = $this->name.'Controller';
		$action = $this->currentAction();
		$user = isset($_SESSION['user']) ? $_SESSION['user'] : 'anonymous';
		echo "<p>這是 <strong>$controller</strong> 的 <strong>$action</strong> 動作頁面，您有權限讀取！</p>";
		echo "<p>您目前登入的身分為：{$user}</p>";
	}
}